package unifor.mia.redes.protocoloconfiavel;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import unifor.mia.redes.relprotocol.ReliableReceiver;
import unifor.mia.redes.relprotocol.ReliableSender;



public class ProtocoloConfiavel {

	ExecutorService service = Executors.newFixedThreadPool(2);
	ReliableSender sender = new ReliableSender();
	ReliableReceiver receiver = new ReliableReceiver(); 

	public static void main(String[] args) {
		
		ProtocoloConfiavel pc = new ProtocoloConfiavel();
		pc.run();
	}

	private void run() {

		service.execute(sender);
		service.execute(receiver);

	}

}
